package controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Auther:ws@itany.com
 * Date:20-9-18 上午9:14
 * Version:1.0
 * Description:
 */
@Controller
@RequestMapping("/ajax")
public class AjaxController {

    @ResponseBody
    @RequestMapping("/regist")
    public String regist(String username){
        if ("admin".equals(username)){
            return "已被使用";
        }
        return "可以的";
    }
}
